package fast.calc;

import fast.data.WeaponType;

public class WeaponStats {
	private double speed;
	private double dps;
	private WeaponType type;
	private boolean twoHander = false;
	
	public WeaponStats(double dps,double speed,WeaponType type){
		this.setSpeed(speed);
		this.setDps(dps);
		this.setType(type);
	}
	
	public WeaponStats(double dps,double speed,WeaponType type,boolean twoHander){
		this.setSpeed(speed);
		this.setDps(dps);
		this.setType(type);
		this.setTwoHander(twoHander);
	}

	public WeaponStats() {
		this.speed = 1;
		this.dps = 0.1;
		this.type = WeaponType.fist;
	}

	public void setSpeed(double speed) {
		this.speed = speed;
	}

	public double getSpeed() {
		return speed;
	}

	public void setDps(double dps) {
		this.dps = dps;
	}

	public double getDps() {
		return dps;
	}

	public void setType(WeaponType type) {
		this.type = type;
	}

	public WeaponType getType() {
		return type;
	}
	
	public void setTwoHander(boolean twoHander) {
		this.twoHander = twoHander;
	}

	public boolean isTwoHander() {
		return twoHander;
	}

	public double getNormalizedSpeed(){
		if(type == WeaponType.dagger)
			return 1.7;
		else
			return 2.4;
	}
}
